<template>
  <fm-making-form ref="makingForm" upload preview generate-code generate-json clearable>
    <template slot="action">
      <el-button type="text"
                 icon="el-icon-close"
                 size="medium"
                 style="color: #f56c6c"
                 @click.stop="handleCloseClick"
      >{{$t('fm.actions.close')}}</el-button>
    </template>
  </fm-making-form>
</template>

<script>
export default {
  mounted () {
  },
  methods: {
    handleCloseClick(evt) {
      console.log('close action!', evt)
      this.$message.success('点击了Close按钮')
    }
  }
}
</script>
